/**
 * OrdersExtensionService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:58
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.OrdersExtensionMapper;
import com.huamao.zh.model.OrdersExtension;
import com.huamao.zh.service.OrdersExtensionService;

@Service
@Transactional
public class OrdersExtensionServiceImpl implements OrdersExtensionService {

	@Autowired
	private OrdersExtensionMapper ordersExtensionMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersExtension add(OrdersExtension ordersExtension) throws Exception {
		ordersExtensionMapper.add(ordersExtension);
		return ordersExtension;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersExtension addSelective(OrdersExtension ordersExtension) throws Exception {
		ordersExtensionMapper.addSelective(ordersExtension);
		return ordersExtension;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int delete(Map<String, Object> map) {
		return ordersExtensionMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int update(OrdersExtension ordersExtension) throws Exception {
		return ordersExtensionMapper.update(ordersExtension);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public int updateSelective(OrdersExtension ordersExtension) throws Exception {
		return ordersExtensionMapper.updateSelective(ordersExtension);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public OrdersExtension get(Integer id) {
		OrdersExtension ordersExtension = ordersExtensionMapper.get(id);
		return ordersExtension;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public PageWrapper<OrdersExtension> search(PageWrapper<OrdersExtension> pageWrapper) {
		List<OrdersExtension> ordersExtensions = ordersExtensionMapper.search(pageWrapper);
		pageWrapper.setList(ordersExtensions);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:58
	 */
	public List<OrdersExtension> queryList(Map<String, Object> map) {
		return ordersExtensionMapper.queryList(map);
	}

	@Override
	public int queryListCount(Map<String, Object> orderMap) {
		return ordersExtensionMapper.queryListCount(orderMap);
	}

	@Override
	public List<OrdersExtension> queryListTwo(Map<String, Object> orderMap) {
		return ordersExtensionMapper.queryListTwo(orderMap);
	}
}